<?php
/**
 * Created by PhpStorm.
 * User: dream
 * Date: 2017/8/20
 * Time: 12:58
 */

//网站首页
class Site extends MY_Controller
{

    //显示首页页面
    public function index()
    {

        $this->loadModel("userinfo");
        $db_users = $this->userinfo->getWhere(["id"=>ADMIN_ID]);

        $db_user = reset($db_users); //信息表
        $data_arr = ['db_user'=>$db_user];

        $this->loadHelper("url");
         $this->loadView([FRONT."header","site_index",FRONT."footer"],$data_arr);
    }

}